package io.github.weiranyi.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

// 手动刷新标记
@RestController
@RequestMapping("/config")
@RefreshScope
public class ConfigClientController {
    @Value("${stu.name}")
    private String name;

    @RequestMapping("/remote")
    public String findRemoteConfig() {
        return name;
    }
}
